package com.yfp.client.service.impl;

import com.yfp.client.domain.MiniBanner;
import com.yfp.client.domain.MiniBannerPosition;
import com.yfp.client.mapper.MiniBannerMapper;
import com.yfp.client.service.MiniBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 小程序banner
 *
 * @CreateDate: 2024/7/22 11:36
 * @UpdateUser:
 * @UpdateDate: 2024/7/22 11:36
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
@Service
public class MiniBannerServiceImpl implements MiniBannerService {
    @Autowired
    private MiniBannerMapper miniBannerMapper;


    @Override
    public List<MiniBanner> findListSortAndCreateTime(String cityName) {
        return miniBannerMapper.findListSortAndCreateTime(cityName);
    }

    @Override
    public List<MiniBanner> findPopup(String cityName) {
        return miniBannerMapper.findPopup(cityName);
    }

    @Override
    public List<MiniBannerPosition> findByMiniBannerId(Long miniBannerId) {
        return miniBannerMapper.findByMiniBannerId(miniBannerId);
    }
}